package com.ncloud.crm.entity.order;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;

/**
 * Created by shiqiang on 2017/4/12.
 */
@SuppressWarnings("serial")
public class Work implements Serializable {
    @JSONField(serializeUsing=ToStringSerializer.class)
    private Long workId;
    @JSONField(serializeUsing=ToStringSerializer.class)
    private Long orderId;
    @JSONField(serializeUsing=ToStringSerializer.class)
    private Long contractInstId;
    @JSONField(serializeUsing=ToStringSerializer.class)
    private Long prodInstId;
    /*施工环节*/
    private String constructItem;
    /*施工人*/
    @JSONField(serializeUsing=ToStringSerializer.class)
    private Long constructUser;
    /*施工时间*/
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date constructTime;
    /*工单完工时间*/
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date finishTime;
    private char workState;
    private String workStateName;
    @JSONField(serializeUsing=ToStringSerializer.class)
    private Long nodeId;
    private String remark;

    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public Long getWorkId() {
        return workId;
    }

    public void setWorkId(Long workId) {
        this.workId = workId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getContractInstId() {
        return contractInstId;
    }

    public void setContractInstId(Long contractInstId) {
        this.contractInstId = contractInstId;
    }

    public Long getProdInstId() {
        return prodInstId;
    }

    public void setProdInstId(Long prodInstId) {
        this.prodInstId = prodInstId;
    }

    public String getConstructItem() {
        return constructItem;
    }

    public void setConstructItem(String constructItem) {
        this.constructItem = constructItem;
    }

    public Long getConstructUser() {
        return constructUser;
    }

    public void setConstructUser(Long constructUser) {
        this.constructUser = constructUser;
    }

    public Date getConstructTime() {
        return constructTime;
    }

    public void setConstructTime(Date constructTime) {
        this.constructTime = constructTime;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public char getWorkState() {
        return workState;
    }

    public void setWorkState(char workState) {
        this.workState = workState;
    }

    public Long getNodeId() {
        return nodeId;
    }

    public void setNodeId(Long nodeId) {
        this.nodeId = nodeId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

	public String getWorkStateName() {
		return workStateName;
	}

	public void setWorkStateName(String workStateName) {
		this.workStateName = workStateName;
	}
}
